from tkinter import *
root = Tk()

topFrame = Frame(root)
topFrame.pack()
bottomFrame = Frame(root)
bottomFrame.pack(side=BOTTOM)

button1 = Button(topFrame,text = 'Button 1',fg = '#F00') #fg fore ground
button2 = Button(topFrame,text = 'Button 1',fg = 'green')
button3 = Button(topFrame,text = 'Button 1',fg = 'blue')
button4 = Button(bottomFrame,text = 'Button 1',fg = 'purple')

button1.pack(side=LEFT) #通过pack把信息输出
button2.pack(side=LEFT)
button3.pack(side=LEFT)
button4.pack(side=RIGHT)

root.mainloop()